

$(function () {
    table_echarts_1();
    table_echarts_2();

    function table_echarts_1() {


        //请求后台数据
        $.ajax({
            type : "post",
            async : true,
            url: "/table/job_list",
            dataType : "json",
            contentType: "application/json",
            success: function(res){
                console.log(res);
                var html = "";
                for( var i = 0; i < res.length; i++ ) {
                    html += "<tr>";
                    html +=     "<td>" + res[i].job_name + "</td>"
                    html +=     "<td>" + res[i].company_name + "</td>"
                    html +=     "<td>" + res[i].workarea + "</td>"
                    html +=     "<td>" + res[i].jobwelf + "</td>"
                    html +=     "<td>" + res[i].companyind + "</td>"
                    html +=     "<td><a>" + res[i].job_href + "</a></td>"
                    html += "</tr>";
                }
                $("#tableecharts1").append(html);
            }
        });
    }

});